import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '首页',
      component: resolve => require(['@/pages/home/Home'], resolve),
      redirect: '/home'
    },
    {
      path: '/home',
      name: '首页',
      component: resolve => require(['@/pages/home/Home'], resolve),
    },
    {
      path: '/news',
      name: '新闻页',
      component: resolve => require(['@/pages/news/News'], resolve),
    },
    {
      path: '/Investment',
      name: '理财页',
      component: resolve => require(['@/pages/investment/Investment'], resolve),
    },
    {
      path: '/borrow',
      name: '借款页',
      component: resolve => require(['@/pages/borrow/Borrow'], resolve),
    },
    {
      path: '/myself',
      name: '用户页',
      component: resolve => require(['@/pages/myself/Myself'], resolve),
    }
  ]
})
